/**banner API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//查询所有banner
export function getBanner() {
  return request({
    url: '/weixin/banner',
    method: 'get',
  })
}
//添加
export function addBanner(data) {
  return request({
    url: '/weixin/banner',
    method: 'post',
    data
  })
}
//修改
export function modBanner(data) {
  return request({
    url: '/weixin/banner',
    method: 'put',
    data
  })
}
//删除
export function delBanner(ids) {
  return request({
    url: '/weixin/banner',
    method: 'delete',
    data:ids
  })
}

export function disableOrEnableBanner(data,params) {
  return request({
    url: '/weixin/banner/disableOrEnable',
    method: 'post',
    params,
    data
  })
}



